package com.zhubayi.shirodb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhubayi.shirodb.entity.Perms;
import com.zhubayi.shirodb.entity.User;

import java.util.List;

/**
 * @author zhubayi
 */
public interface UserService extends IService<User> {
    /**
     * 注册
     * @param user
     */
    void register(User user);
    User findByUserName(String username);
    //根据用户名查询所有角色
    User findRolesByUserName(String username);
    //根据角色id查询权限集合
    List<Perms> findPermsByRoleId(String id);
}
